/*    */ package com.zimbra.cs.account;
/*    */ 
/*    */ import com.zimbra.common.service.ServiceException;
/*    */ import com.zimbra.common.util.Log;
/*    */ import com.zimbra.common.util.ZimbraLog;
/*    */ import java.util.HashMap;
/*    */ import java.util.Map;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public class AlwaysOnCluster
/*    */   extends ZAttrAlwaysOnCluster
/*    */ {
/* 29 */   private final Map<String, Object> serverOverrides = new HashMap();
/*    */   
/*    */   public AlwaysOnCluster(String name, String id, Map<String, Object> attrs, Map<String, Object> defaults, Provisioning prov) {
/* 32 */     super(name, id, attrs, defaults, prov);
/*    */     try {
/* 34 */       getDefaults(AttributeFlag.serverPreferAlwaysOn, this.serverOverrides);
/*    */     } catch (ServiceException se) {
/* 36 */       ZimbraLog.account.warn("error while calculating server overrides", se);
/*    */     }
/*    */   }
/*    */   
/*    */   public Entry.EntryType getEntryType()
/*    */   {
/* 42 */     return Entry.EntryType.ALWAYSONCLUSTER;
/*    */   }
/*    */   
/*    */   public void resetData()
/*    */   {
/* 47 */     super.resetData();
/*    */     try {
/* 49 */       getDefaults(AttributeFlag.serverPreferAlwaysOn, this.serverOverrides);
/*    */     } catch (ServiceException e) {
/* 51 */       ZimbraLog.account.warn("error while calculating server overrides", e);
/*    */     }
/*    */   }
/*    */   
/*    */   public Map<String, Object> getServerOverrides() {
/* 56 */     return this.serverOverrides;
/*    */   }
/*    */ }


/* Location:              /home/mint/zimbrastore.jar!/com/zimbra/cs/account/AlwaysOnCluster.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       0.7.1
 */